package com.changgou.pay;

import com.github.wxpay.sdk.WXPay;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;
import java.util.Map;

@SpringBootTest
@RunWith(SpringRunner.class)
public class test {

    @Autowired
    private WXPay wxPay;

    @Test
    public void test() throws Exception {
        HashMap<String ,String> map = new HashMap<>();
        map.put("out_trade_no","1247168164291284992");
        Map<String, String> result = wxPay.orderQuery(map);
        System.out.println(result);

    }

}
